package com.yellowpage.omc.o2o.data;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import org.hibernate.annotations.GenericGenerator;

/**
 * ChannelCustomer entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "OMC_CHANNEL_CUSTOMER")
public class ChannelCustomer implements java.io.Serializable {

	// Fields

	private Long channelCustomerId;
	private Integer customerId;
	private Long channelId;
	private String lastOrder;
	private Integer createUser;
	private Date createTime;
	private Integer lastUpdateUser;
	private Date lastUpdateTime;

	// Constructors

	/** default constructor */
	public ChannelCustomer() {
	}

	/** minimal constructor */
	public ChannelCustomer(Integer customerId) {
		this.customerId = customerId;
	}

	/** full constructor */
	public ChannelCustomer(Integer customerId, Long channelId,
			String lastOrder, Integer createUser, Date createTime,
			Integer lastUpdateUser, Date lastUpdateTime) {
		this.customerId = customerId;
		this.channelId = channelId;
		this.lastOrder = lastOrder;
		this.createUser = createUser;
		this.createTime = createTime;
		this.lastUpdateUser = lastUpdateUser;
		this.lastUpdateTime = lastUpdateTime;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "identity")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "CHANNEL_CUSTOMER_ID", unique = true, nullable = false)
	public Long getChannelCustomerId() {
		return this.channelCustomerId;
	}

	public void setChannelCustomerId(Long channelCustomerId) {
		this.channelCustomerId = channelCustomerId;
	}

	@Column(name = "CUSTOMER_ID", nullable = false)
	public Integer getCustomerId() {
		return this.customerId;
	}

	public void setCustomerId(Integer customerId) {
		this.customerId = customerId;
	}

	@Column(name = "CHANNEL_ID")
	public Long getChannelId() {
		return this.channelId;
	}

	public void setChannelId(Long channelId) {
		this.channelId = channelId;
	}

	@Column(name = "LAST_ORDER", length = 200)
	public String getLastOrder() {
		return this.lastOrder;
	}

	public void setLastOrder(String lastOrder) {
		this.lastOrder = lastOrder;
	}

	@Column(name = "CREATE_USER")
	public Integer getCreateUser() {
		return this.createUser;
	}

	public void setCreateUser(Integer createUser) {
		this.createUser = createUser;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "CREATE_TIME", length = 0)
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Column(name = "LAST_UPDATE_USER")
	public Integer getLastUpdateUser() {
		return this.lastUpdateUser;
	}

	public void setLastUpdateUser(Integer lastUpdateUser) {
		this.lastUpdateUser = lastUpdateUser;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "LAST_UPDATE_TIME", length = 0)
	public Date getLastUpdateTime() {
		return this.lastUpdateTime;
	}

	public void setLastUpdateTime(Date lastUpdateTime) {
		this.lastUpdateTime = lastUpdateTime;
	}

}